package Server;

import java.io.*;
import java.net.Socket;

public class ServerUtil {
//    public static final String CONNECT_IP = "127.0.0.1";
    public static final int CONNECT_PORT = 5001;

    public static Socket socket;

    public static BufferedReader buf;
    public static PrintWriter pw;
    public static ObjectOutputStream oos;
    public static ObjectInputStream ois;

    public static void connect() throws IOException {
//        socket = new Socket(CONNECT_IP, CONNECT_PORT);
        buf = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        pw = new PrintWriter(socket.getOutputStream());
        oos = new ObjectOutputStream(socket.getOutputStream());
        ois = new ObjectInputStream(socket.getInputStream());
    }
}